package com.huo.filestransport.service;

import com.huo.annotation.TaskLogAnnotation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TaskService {
	
	private final static Logger logger = LoggerFactory.getLogger(TaskService.class);
	
	@Autowired
	private FtpService transportService;
	
	
//	@Scheduled(cron="${cronsave}")
	@TaskLogAnnotation
	public void Test111()  {
		logger.info("=======test111=======");
	}
	
	//@Scheduled(cron="* * 1 * * ?")
	public void clearFtpFileInfo() {
		transportService.clearFtpFileInfo();
	}
	


}
